/*
 * vws_logger-inl.h
 *
 *  Created on: Sep 20, 2013
 *      Author: vscen
 */

#ifndef VWS_LOGGER_INL_H_
#define VWS_LOGGER_INL_H_

#include "vws_logger.h"

namespace vws {
inline vws_logger::loggerConf operator|(vws_logger::loggerConf __a,
		vws_logger::loggerConf __b) {
	return vws_logger::loggerConf(static_cast<int> (__a)
			| static_cast<int> (__b));
}

inline vws_logger::loggerConf operator&(vws_logger::loggerConf __a,
		vws_logger::loggerConf __b) {
	return vws_logger::loggerConf(static_cast<int> (__a)
			& static_cast<int> (__b));
}
//DEBUG_CONF("outputfile", Logger::file_on|Logger::screen_on, DBG_DEBUG, DBG_ERROR);
inline void vws_debug_config(const char* filename,
		vws_logger::loggerConf configuration, int fileVerbosityLevel,
		int screenVerbosityLevel) {
	vws_logger::getInstance().configure(filename, configuration,
			fileVerbosityLevel, screenVerbosityLevel);
}
}

#endif /* VWS_LOGGER_INL_H_ */
